import { $axios } from '../utils/http/index.js'

/**
 * 获取用户列表
 * @param {*} data
 * @returns
 */
export const getUserList = async (data, config, options) => {
  return $axios.get(`/user/list`, data, config, options)
}
/**
 * 新增用户
 * @param {*} data
 * @param {*} config 如：{headers:{}}
 * @param {*} options 如：{loading:false, repeatCancel:false}
 * @returns
 */
export const addUser = async (data, config, options) => {
  return $axios.post(`/user/addUser`, data, config, options)
}
